<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/four.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../css/jqe/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../css/jqe/themes/icon.css"/>

    <script type="text/javascript" src="../js/jquery-3.1.1.min.js"></script>
	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
    
    <script type="text/javascript">
    $(function(){
    	//初始化对话框
    	 $('#dw,#dwEdit').window({
    		   onBeforeClose:function(){ 
    			   //取消时关闭等待框
    			   setTimeout(function(){ 
    				   sending.style.visibility = "hidden";
				   }, 250);
    	   }});
    	
   
          $(".btnAll").each(function(i,v){
    	   //变手型
    	     $(v).mouseover(function() {
				$(this).css("cursor", "hand");
			 }).mouseout(function() {
				$(this).css("cursor", "pointer");
			 });
    	   
    	   
    	   if($(v).html()=='【新增】'){
    		   $(v).click(function(){
    			  location.href="addzx.jsp";
    		   });
    	   }else if($(v).html()=='【编辑】'){
      		   $(v).click(function(){
      			 location.href="toupzx.do?zstuid="+$(v).prop("lang");
      			  
      		   });
    	   }else if($(v).html()=='【删除】'){
    		   $(v).click(function(){
    			  if(confirm("确认删除'"+$(v).prop("title")+"'?")){
    				  location.href="delzx.do?zstuid="+$(v).prop("lang"); 
    			  }
    		   });
    	   } 
       });

     
    });
    </script>
</head>
<body>
	<!-- 包含等待框 -->
	<jsp:include page="../waittable.jsp" flush="true" />
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr valign="top">
			<td bgcolor="#FFFFFF"><table width="96%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#aec3de">
					<tr align="left" bgcolor="#F2FDFF">			
						<td colspan="16" class="optiontitle">咨询学员管理
						</td>
						
					</tr> 
					<tr align="center">
						<td align="center" bgcolor="#ebf0f7">学员姓名</td>
						<td align="center" bgcolor="#ebf0f7">性别</td>
						<td align="center" bgcolor="#ebf0f7">所学专业</td>
						<td align="center" bgcolor="#ebf0f7">咨询量类型</td>
						<td align="center" bgcolor="#ebf0f7">高校班级</td>
						<td align="center" bgcolor="#ebf0f7">电话</td>
						<td align="center" bgcolor="#ebf0f7">准学生QQ</td>
						<td align="center" bgcolor="#ebf0f7">录入时间</td>
						<td align="center" bgcolor="#ebf0f7">入学评级</td>
						<td align="center" bgcolor="#ebf0f7">有意入学时间</td>
						<td align="center" bgcolor="#ebf0f7">意向班级</td>
						<td align="center" bgcolor="#ebf0f7">微信</td>
						<td align="center" bgcolor="#ebf0f7">咨询量状态</td>
						<td align="center" bgcolor="#ebf0f7">备注说</td>
						<td align="center" bgcolor="#ebf0f7">操作 <span class="btnAll">【新增】</span> </td>
					</tr>
					<c:forEach items="${page.results}" var="zx">

						<tr align="center" bgcolor="#FFFFFF">
						<td align="center" bgcolor="#ebf0f7">${zx.stuname}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.ssex}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.magyer}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.zxltype}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.gaoxiaoClz}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.stuphone}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.zstuqq}</td>
						<td align="center" bgcolor="#ebf0f7"><fmt:formatDate value="${zx.contime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
						<td align="center" bgcolor="#ebf0f7">${zx.entrance}</td>
						<td align="center" bgcolor="#ebf0f7"><fmt:formatDate value="${zx.entime}" pattern="yyyy-MM-dd"/></td>
						<td align="center" bgcolor="#ebf0f7">${zx.stuclassid}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.weixin}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.zxstate}</td>
						<td align="center" bgcolor="#ebf0f7">${zx.zstudesc}</td>
						<td align="center">												
									 <span class="btnAll" lang="${zx.zstuid}">【编辑】</span>
								    | <span class="btnAll" lang="${zx.zstuid}" title="${zx.stuname}">【删除】</span>
				               
							</td>
						</tr>
					</c:forEach>
					
					<tr align="right" bgcolor="#ebf0f7">
							<td colspan="16">
							<jk:page totalPage="${page.totalPage}" pageNo="${page.pageNo}" totalRecord="${page.totalRecord}"
                                url="ShowZxXueyuan.do" />
							</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
		  <td align="center" style="color: red">${msg}</td>
		</tr>
	</table>

</body>
</html>